<template>
  <div v-transfer-dom="true" :data-transfer="true">
      <h1 v-click-out="haha" class="red" @click="text++">{{text}} {{data}}</h1>
  </div>
</template>

<script>
import TransferDom from "@/directives/transfer-dom";
import ClickOut from "@/directives/click-out";

export default {
  props: {
    data: {}
  },
  data() {
    return {
      text: 1
    };
  },
  methods: {
    haha() {
    }
  },
  directives: {
    TransferDom,
    ClickOut
  }
};
</script>

<style>

</style>
